home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Idle / PeriodicMethod.h < prev    next >
Text File  |  1997-06-28  |  486b  |  28 lines

  1. // PeriodicMethod.h
  2.  
  3. #ifndef PeriodicMethod_h
  4. #define PeriodicMethod_h
  5.  
  6. #ifndef MethodOf_h
  7. #include "MethodOf.h"
  8. #endif
  9. #ifndef Periodic_h
  10. #include "Periodic.h"
  11. #endif
  12.  
  13. template < class Target >
  14. class PeriodicMethod: public MethodOf< Target >,
  15.                              public Periodic
  16.   {
  17.     public:
  18.         PeriodicMethod( Target *t,
  19.                              MemberType m,
  20.                              uint32 period,
  21.                              bool startEnabled = true )
  22.           : MethodOf<Target>( t, m ),
  23.              Periodic( *this, period, startEnabled )
  24.           {}
  25.   };
  26.  
  27. #endif
  28.